package com.tfswue.qiu.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("tb_order")
public class Order {
    private Long id;
    private Long price;
    private String name;
    private Integer num;
    private Long userId;

    @TableField(exist = false)
    private String orderStatus;
    //嵌入User对象，并标记为非字段
    @TableField(exist = false)
    private User user;
}

/*
* {
* id:101
* price: 1000
* name: "iphone 11 pro"
* num: 1
* userId: 1
* orderStatus: "待支付"
*
*
* }
*
* */
